package ru.urfc.portal.ui.client.model.catalogs;

import ru.urfc.portal.ui.client.Style;

public abstract class NetLicenseState extends CatalogItemWithStyle {

	static public final NetLicenseState ANNULATED = new NetLicenseState("0", "Аннулировано") {
		@Override
		public String getStyleName(Style style) {
			return style.netLicenseAnnulated();
		}
	};
	
	static public final NetLicenseState ACTIVE = new NetLicenseState("1", "Действительно") {
		@Override
		public String getStyleName(Style style) {
			return style.netLicenseActive();
		}
	};

	static public final NetLicenseState EXPIRED = new NetLicenseState("2", "Просрочено") {
		@Override
		public String getStyleName(Style style) {
			return style.netLicenseExpired();
		}
	};
	
	static public final NetLicenseState STOPPED = new NetLicenseState("3", "Временно приостановлено") {
		@Override
		public String getStyleName(Style style) {
			return style.netLicenseStopped();
		}
	};
	
	static public NetLicenseState[] values = {ANNULATED, ACTIVE, EXPIRED, STOPPED}; 

	protected NetLicenseState(String code, String text) {
		super(code, text);
	}
	
}
